saving the results to data files.